package com.b511.swpu.cementbackend.repository;

import com.b511.swpu.cementbackend.entity.MAIN_Country;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;

public interface MAIN_CountryRepository extends JpaRepository<MAIN_Country, String>,
        JpaSpecificationExecutor<MAIN_Country> {

    @Transactional
    void deleteByRelationCode(String relationCode);

    @Transactional
    void deleteByCountryCode(String countryCode);

    MAIN_Country findByRelationCode(String relationCode);

    MAIN_Country findByCountryCode(String countryCode);
}
